package com.idak.spring.web.flow.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


@Controller
@RequestMapping("/helloSpringMVC.htm")
public class HelloSpringMVC {
	
	@RequestMapping(method=RequestMethod.GET)
	public String sayHelloWorldWithSpringMVC(@RequestParam(value="name",required=false) String name, 
		    ModelMap model){
		
		model.addAttribute("name", name);
		return "hello";
	}
}
